﻿@using Peninsula.Web.Areas.Backstage.Models.ItemType;
@model  ItemTypeCreateOrEditModel


@section Scripts{
    <script type="text/javascript">
    </script>
}

<!-- BEGIN FORM PORTLET -->
<div class="portlet">
    <div class="portlet-title">
        <div class="caption">
            <i class="fa fa-reorder"></i>@ViewBag.Title
        </div>
    </div>
    <div class="portlet-body form">

        @using (Html.BeginForm("CreateOrEditItemType", "ItemType", FormMethod.Post, new { @class = "form-horizontal js-form js-ajax-form" }))
        {
            @Html.AntiForgeryToken() // 防止用户伪造请求
                                    @Html.HiddenFor(m => m.Id)
                                    @Html.HiddenFor(m => m.IsEdit)
                                    <div class="form-body">
                                        <div class="form-group">
                                            <label class="col-md-3 control-label">
                                                <span style="color:red">*</span>@Html.DisplayNameFor(i => i.Name)
                                            </label>
                                            <div class="col-md-3">
                                                @Html.TextBoxFor(i => i.Name, new { @class = "form-control" })
                                                @Html.ValidationMessageFor(i => i.Name)
                                            </div>
                                        </div>
                                    </div>
                                    <div class="form-actions fluid ">
                                        <div class="col-md-offset-3 col-md-9">
                                            <button type="submit" class="btn btn-success">保存</button>
                                            <a href="@HttpContext.Current.Request.UrlReferrer" class="btn btn-default">取消</a>
                                        </div>
                                    </div>
        }

    </div>
</div>

